<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>07文本的样式</title>
    <style>
        div{
            width: 800px;
            border: 1px red solid;
            /* 
            text-align 文本的水平对齐
                可选值：
                    left 左侧对齐
                    right 右对齐
                    center 居中对齐
                    justify 两端对齐
            */
            text-align: center;
        }
        span{
            font-size: 10px;
            border: 1px blue solid;
            /* 
            vertical-align 设置元素垂直对齐的方式
                可选值：
                    baseline 默认值 基线对齐
                    top 顶部对齐
                    bottom 底部对齐
                    middle 居中对齐
            */
        }
    </style>
</head>
<body>
    <div>今天天气hello y <span>真不错hello y </span></div>
    
    <div> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Non, natus excepturi optio deserunt porro, ullam labore ratione sint exercitationem illum dolorem ex quam cupiditate quo dicta at magnam rem animi?</div>
</body>
</html>